package cn.gcyl.module.biz.controller.admin.platforminformation.vo;

import cn.gcyl.framework.common.pojo.PageParam;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

import static cn.gcyl.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

@Schema(description = "管理后台 - 平台信息分页 Request VO")
@Data
public class PlatformInformationPageReqVO extends PageParam {

    @Schema(description = "平台信息id", example = "2")
    private Long id;
    @Schema(description = "标题类型(项目采购商机 项目分包商机 集中招募商机)")
    private String titleType;

    @Schema(description = "标题")
    private String title;

    @Schema(description = "采购公司")
    private String purchasingCompany;

    @Schema(description = "显示顺序")
    private Integer sort;

    @Schema(description = "浏览人数")
    private Integer[] visitors;

    @Schema(description = "收藏人数")
    private Integer[] collectors;

    @Schema(description = "分享人数")
    private Integer[] shares;

    @Schema(description = "咨询人数")
    private Integer[] inquiries;

    @Schema(description = "状态（0正常 1停用）", example = "2")
    private Integer status;

    @Schema(description = "咨询电话")
    private String phone;

    @Schema(description = "信息类型类型", example = "2")
    private String informationType;

    @Schema(description = "开始时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] startTime;

    @Schema(description = "结束时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] endTime;

    @Schema(description = "需求标签")
    private String requirementLabel;

    @Schema(description = "详情")
    private String details;

    @Schema(description = "创建时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] createTime;

    /**
     * 是否收藏(0未收藏 1已收藏)
     */
    private Integer isCollect;
}